package com.ruoyi.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 团购订单对象 car_group_buy_order
 * 
 * @author ruoyi
 * @date 2025-01-27
 */
@Data
public class CarGroupBuyOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Integer id;

    /** 团购id */
    @Excel(name = "团购id")
    private Integer groupBuyId;

    /** 用户id */
    @Excel(name = "用户id")
    private Integer userId;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNumber;

    /** 订单状态（0待支付，1已支付，2已完成，3已取消） */
    @Excel(name = "订单状态")
    private Integer orderStatus;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private Double payAmount;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;

    /** 参与时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "参与时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date joinTime;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer deleted;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setGroupBuyId(Integer groupBuyId) 
    {
        this.groupBuyId = groupBuyId;
    }

    public Integer getGroupBuyId() 
    {
        return groupBuyId;
    }

    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }

    public void setOrderNumber(String orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber() 
    {
        return orderNumber;
    }

    public void setOrderStatus(Integer orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public Integer getOrderStatus() 
    {
        return orderStatus;
    }

    public void setPayAmount(Double payAmount) 
    {
        this.payAmount = payAmount;
    }

    public Double getPayAmount() 
    {
        return payAmount;
    }

    public void setPayTime(Date payTime) 
    {
        this.payTime = payTime;
    }

    public Date getPayTime() 
    {
        return payTime;
    }

    public void setJoinTime(Date joinTime) 
    {
        this.joinTime = joinTime;
    }

    public Date getJoinTime() 
    {
        return joinTime;
    }

    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("groupBuyId", getGroupBuyId())
            .append("userId", getUserId())
            .append("orderNumber", getOrderNumber())
            .append("orderStatus", getOrderStatus())
            .append("payAmount", getPayAmount())
            .append("payTime", getPayTime())
            .append("joinTime", getJoinTime())
            .append("deleted", getDeleted())
            .toString();
    }
}
